package com.hnhy.hnhyscms_ws.dao;

import com.hnhy.hnhyscms_ws.entity.Cpstorage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ICpstorageDao {
    List<Cpstorage> getAllProducts();
    Cpstorage getByProductNo(@Param("productNo")String productNo);
    void addProducts(Cpstorage cpstorage);
    Cpstorage findMaxId();
    void updateByProductNo(Cpstorage cpstorage);
    void changeByProductNo(Cpstorage cpstorage);
    void deleteByProductNo(@Param("productNo")String productNo);
}
